/* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
 * All rights reserved.
 *
 * This software is supplied "AS IS" without any warranties.
 * RDA assumes no responsibility or liability for the use of the software,
 * conveys no license or title under any patent, copyright, or mask work
 * right to the product. RDA reserves the right to make changes in the
 * software without notification.  RDA also make no representation or
 * warranty that such application will be suitable for the specified use
 * without further testing or modification.
 */

#ifndef __CFW_EVENT_H__
#define __CFW_EVENT_H__

//
// System level Events
//
#define EV_SYS_BASE 0
#define EV_SYS_END_ 50

#define EV_SHL_CFW_STATUS_IND (EV_SYS_BASE + 10)
#define EV_COS_CALLBACK (EV_SYS_BASE + 11)
#define EV_MESSAGE_EVENT (EV_SYS_BASE + 12)

//
// DM Events.
//
#define EV_DM_BASE (50)
#define EV_DM_END_ (100)

//
// PM Evetns.
//
#define EV_PM_BASE (100)
#define EV_PM_END_ (150)

#define EV_CFW_START_ (500)

#define EV_CFW_NW_RSP_BASE (500)
#define EV_CFW_NW_RSP_END_ (550)

#define EV_CFW_CC_RSP_BASE (550)
#define EV_CFW_CC_RSP_END_ (600)

#define EV_CFW_SS_RSP_BASE (600)
#define EV_CFW_SS_RSP_END_ (650)

#define EV_CFW_SIM_RSP_BASE (700)
#define EV_CFW_SIM_RSP_END_ (770)

#define EV_CFW_SMS_RSP_BASE (770)
#define EV_CFW_SMS_RSP_END_ (800)

#define EV_CFW_PBK_RSP_BASE (800)
#define EV_CFW_PBK_RSP_END_ (850)

#define EV_CFW_GPRS_RSP_BASE (850)
#define EV_CFW_GPRS_RSP_END_ (900)

#define EV_CFW_FAX_RSP_BASE (900)
#define EV_CFW_FAX_RSP_END_ (950)

#define EV_CFW_TCPIPUDP_RSP_BASE (1000)
#define EV_CFW_TCPIPUDP_RSP_END_ (1050)

#define EV_CFW_HTTP_RSP_BASE (1050)
#define EV_CFW_HTTP_RSP_END_ (1100)

#define EV_CFW_SHELL_RSP_BASE (1100)
#define EV_CFW_SHELL_RSP_END_ (1150)

#define EV_CFW_TM_RSP_BASE (1150) // Test Module
#define EV_CFW_TM_RSP_END_ (1200)

#define EV_RMC_BASE (1200) // Remote Control Module
#define EV_RMC_END_ (1300)

#define EV_CFW_WIFI_RSP_BASE (1300) // Test Module
#define EV_CFW_WIFI_RSP_END_ (1350)

#define EV_WIFI_RSP_BASE (1300)
#define EV_WIFI_RSP_END_ (1350)

#define EV_WIFI_IND_BASE (1351)
#define EV_WIFI_IND_END_ (1400)

#define EV_BT_TETHER_BASE (1400)
#define EV_BT_TETHER_END_ (1450)

#define EV_CFW_IND_BASE (5000)
#define EV_CFW_IND_END_ (5070)

#define EV_CFW_END_ (6000)

//
// AFW event.
//
#define AFW_EV_BASE (7000)
#define AFW_EV_END_ (8000)

//
// UI FW event
//
#define UI_FW_EV_BASE (9000)
#define UI_FW_EV_END_ (10000)

#define CSW_SRV_EV_END_ (0x000FFFFF)

//
// User Event: 0x00100000 -- 0xA0000000
//
#define EV_MMI_EV_BASE 0x00100000
#define EV_MMI_EV_END_ 0xA0000000

// ...
// 0xA0000000 -- 0xF0000000 reserved by system.
//

//
// CSW Private Event 0xF0000001 --  0xF000F000
// used by CSW internal only
//
#define EV_CSW_PRV_BASE 0xF0000001
#define EV_CSW_PRV_END_ 0xF000F000

//
// CSW Private Event 0xF000F001 --  0xFFFFF000
//
#define EV_CSW_REQ_BASE 0xF000F001
#define EV_CSW_REQ_END_ 0xFFFFF000 // don't change this value!

// ...
// 0xFFFFF000 -- 0xFFFFFFF reserved by system.
//

#define EV_EMU_BASE 0xF0000000

//
// Helper Macros
//
#define IS_CFW_EVNET(evId) (((evId) >= EV_CFW_START_) && (evId) < EV_CFW_END_)

//
// DM & TIM Event.
//
#define EV_DM_POWER_ON_IND (EV_DM_BASE + 1) // 51
#define EV_DM_POWER_OFF_IND (EV_DM_BASE + 5)
#define EV_TIM_ALRAM_IND (EV_DM_BASE + 6)
#define EV_DM_UART_RECEIVE_DATA_IND (EV_DM_BASE + 8)
#define EV_DM_EXTI_IND (EV_DM_BASE + 9)
#define EV_DM_GPIO_IND (EV_DM_BASE + 10)
#define EV_DM_RECORD_END_IND (EV_DM_BASE + 11)
#define EV_DM_STREAM_END_IND (EV_DM_BASE + 12)
#define EV_DM_GPADC_IND (EV_DM_BASE + 13)
#define EV_TIM_SET_TIME_IND (EV_DM_BASE + 14)

//guoh add speech indication, if start call, this indication will send to mmi task
#define EV_DM_SPEECH_IND (EV_DM_BASE + 15)

#define EV_DM_AUDIO_OPER_MSG_START (EV_DM_BASE + 16)

#define EV_DM_AUDIO_CONTROL_IND (EV_DM_BASE + 16)
#define EV_DM_SET_AUDIO_VOLUME_IND (EV_DM_BASE + 17)
#define EV_DM_SET_MIC_GAIN_IND (EV_DM_BASE + 18)
#define EV_DM_SET_AUDIO_MODE_IND (EV_DM_BASE + 19)

#define EV_DM_AUD_SETUP_IND (EV_DM_BASE + 20)
#define EV_DM_AUD_STREAM_START_IND (EV_DM_BASE + 21)
#define EV_DM_AUD_STREAM_STOP_IND (EV_DM_BASE + 22)
#define EV_DM_AUD_STREAM_PAUSE_IND (EV_DM_BASE + 23)
#define EV_DM_AUD_STREAM_RECORD_IND (EV_DM_BASE + 24)
#define EV_DM_AUD_TEST_MODE_SETUP_IND (EV_DM_BASE + 25)
#define EV_DM_AUD_FORCE_RECV_MIC_SEL_IND (EV_DM_BASE + 26)
#define EV_DM_AUD_SET_CUR_OUTPUT_DEVICE_IND (EV_DM_BASE + 27)
#define EV_DM_AUD_MUTE_OUTPUT_DEVICE_IND (EV_DM_BASE + 28)
#define EV_DM_AUD_LOUDSPK_WITH_EP_IND (EV_DM_BASE + 29)

#define EV_DM_VOIS_RECORD_START_IND (EV_DM_BASE + 30)
#define EV_DM_VOIS_RECORD_STOP_IND (EV_DM_BASE + 31)

#define EV_DM_ARS_SETUP_IND (EV_DM_BASE + 33)
#define EV_DM_ARS_RECORD_IND (EV_DM_BASE + 34)
#define EV_DM_ARS_PAUSE_IND (EV_DM_BASE + 35)
#define EV_DM_ARS_STOP_IND (EV_DM_BASE + 36)

#define EV_DM_READ_IPC_DATA_IND (EV_DM_BASE + 38)

#define EV_DM_AUDIO_OPER_MSG_END (EV_DM_BASE + 39)

// don't change the following definition
#define EV_KEY_DOWN (EV_DM_BASE + 40)
#define EV_KEY_PRESS (EV_DM_BASE + 41)
#define EV_KEY_UP (EV_DM_BASE + 42)
#define EV_TIMER (EV_DM_BASE + 43)
#define EV_DOUBLE_KEY_DOWN (EV_DM_BASE + 44)
#define EV_DOUBLE_KEY_UP (EV_DM_BASE + 45)
#define EV_DM_UART_MUX_RECEIVE_DATA_IND (EV_DM_BASE + 46)
#define EV_DM_READ_UART_DATA_IND (EV_DM_BASE + 47)

//
// PM Event
//
#define EV_PM_BC_IND (EV_PM_BASE + 1) // 101

//
// CFW IND Event.
//
#define EV_CFW_INIT_IND (EV_CFW_IND_BASE + 1) // 5001
#define EV_CFW_SRV_STATUS_IND (EV_CFW_IND_BASE + 2)
#define EV_CFW_NW_SIGNAL_QUALITY_IND (EV_CFW_IND_BASE + 3)
#define EV_CFW_NW_REG_STATUS_IND (EV_CFW_IND_BASE + 5)
#define EV_CFW_CC_SPEECH_CALL_IND (EV_CFW_IND_BASE + 6)
#define EV_CFW_CC_CRSSINFO_IND (EV_CFW_IND_BASE + 7)
#define EV_CFW_NEW_SMS_IND (EV_CFW_IND_BASE + 8)
#define EV_CFW_SMS_INFO_IND (EV_CFW_IND_BASE + 9)
#define EV_CFW_CC_CALL_INFO_IND (EV_CFW_IND_BASE + 10)
#define EV_CFW_SIM_STATUS_IND (EV_CFW_IND_BASE + 11)
#define EV_CFW_SS_USSD_IND (EV_CFW_IND_BASE + 12)
#define EV_CFW_CC_RELEASE_CALL_IND (EV_CFW_IND_BASE + 13)
#define EV_CFW_CC_ERROR_IND (EV_CFW_IND_BASE + 14)
#define EV_CFW_SAT_CMDTYPE_IND (EV_CFW_IND_BASE + 15)
#define EV_CFW_PBK_IND (EV_CFW_IND_BASE + 16)
#define EV_CFW_NW_NETWORKINFO_IND (EV_CFW_IND_BASE + 17)
#define EV_CFW_GPRS_CXT_ACTIVE_IND (EV_CFW_IND_BASE + 18)
#define EV_CFW_GPRS_CXT_DEACTIVE_IND (EV_CFW_IND_BASE + 19)
#define EV_CFW_GPRS_MOD_IND (EV_CFW_IND_BASE + 20)
#define EV_CFW_GPRS_STATUS_IND (EV_CFW_IND_BASE + 21)
#define EV_CFW_GPRS_DATA_IND (EV_CFW_IND_BASE + 22)
#define EV_CFW_GPRS_CTRL_RELEASE_IND (EV_CFW_IND_BASE + 23)

#define EV_CFW_TCPIP_BEARER_LOSING_IND (EV_CFW_IND_BASE + 24) // TCP/IP IND
#define EV_CFW_TCPIP_REV_DATA_IND (EV_CFW_IND_BASE + 25)      // TCP/IP IND
#define EV_CFW_TCPIP_CLOSE_IND (EV_CFW_IND_BASE + 26)         // TCP/IP close IND
#define EV_CFW_TCPIP_ERR_IND (EV_CFW_IND_BASE + 27)           // TCP/IP ERROR IND
#define EV_CFW_TCPIP_ACCEPT_IND (EV_CFW_IND_BASE + 28)        // TCP/IP accept IND
#define EV_CFW_ICMP_DATA_IND (EV_CFW_IND_BASE + 29)

#define EV_CFW_DNS_RESOLV_SUC_IND (EV_CFW_IND_BASE + 30)
#define EV_CFW_DNS_RESOLV_ERR_IND (EV_CFW_IND_BASE + 31)
#define EV_CFW_PPP_DATA_IND (EV_CFW_IND_BASE + 32)
#define EV_CFW_PPP_TERMINATE_IND (EV_CFW_IND_BASE + 33)

#define EV_CFW_MBS_CALL_INFO_IND (EV_CFW_IND_BASE + 34)

#define EV_CFW_NEW_EMS_IND (EV_CFW_IND_BASE + 35)
#define EV_CFW_ATT_STATUS_IND (EV_CFW_IND_BASE + 36)
#define EV_CFW_CC_STATUS_IND (EV_CFW_IND_BASE + 37)
#define EV_CFW_CC_PROGRESS_IND (EV_CFW_IND_BASE + 38)
#define EV_CFW_NW_JAMMING_DETECT_IND (EV_CFW_IND_BASE + 39)

#define EV_CFW_CB_MSG_IND (EV_CFW_IND_BASE + 40)
#define EV_CFW_CB_PAGE_IND (EV_CFW_IND_BASE + 41)

#define EV_CFW_BLUETOOTH_DATA_IND (EV_CFW_IND_BASE + 42)
#define EV_CFW_BLUETOOTH_WAKEUP_IND (EV_CFW_IND_BASE + 43)

#define EV_CFW_REG_UPDATE_IND (EV_CFW_IND_BASE + 44)

#define EV_CFW_NEW_SMS_PDU_IND (EV_CFW_IND_BASE + 45)
#define EV_CFW_ICMPV4_DATA_REQ (EV_CFW_IND_BASE + 46)
#define EV_CFW_ICMPV4_DATA_RPY (EV_CFW_IND_BASE + 47)

#define EV_CFW_EXIT_IND (EV_CFW_IND_BASE + 48)
#define EV_CFW_ERRC_CONNSTATUS_IND (EV_CFW_IND_BASE + 49)

#define EV_CFW_GPRS_PDN_CTX_ACTIVE_IND (EV_CFW_IND_BASE + 51)
#define EV_CFW_GPRS_SEC_CTX_ACTIVE_IND (EV_CFW_IND_BASE + 52)
#define EV_CFW_GPRS_SEC_CTX_DEACTIVE_IND (EV_CFW_IND_BASE + 53)
#define EV_CFW_GPRS_CTX_MODIFY_IND (EV_CFW_IND_BASE + 54)

#define EV_CFW_EMC_NUM_LIST_IND (EV_CFW_IND_BASE + 55)

#define EV_CFW_GPRS_EDRX_IND (EV_CFW_IND_BASE + 56)
#define EV_CFW_GPRS_CCIOTOPT_IND (EV_CFW_IND_BASE + 57)
#define EV_CFW_GPRS_APNCR_IND (EV_CFW_IND_BASE + 58)
#define EV_CFW_GPRS_CRTDCP_IND (EV_CFW_IND_BASE + 59)
#define EV_CFW_GPRS_NONIPDATA_IND (EV_CFW_IND_BASE + 60)
#define EV_CFW_IPERF_REV_DATA_IND (EV_CFW_IND_BASE + 61)
#define EV_CFW_CALL_CONTROL_CCM_IND (EV_CFW_IND_BASE + 62)

#define EV_CFW_CC_AUDIOON_IND (EV_CFW_IND_BASE + 63)
#define EV_CFW_CC_ALERT_IND (EV_CFW_IND_BASE + 64)

#define EV_CFW_IMS_STATE_IND (EV_CFW_IND_BASE + 65)
#define EV_CFW_CC_CALL_PATH_IND (EV_CFW_IND_BASE + 66)
#define EV_CFW_CC_CALL_TI_ASSIGNED_IND (EV_CFW_IND_BASE + 67)
#define EV_CFW_CC_AUDIO_RESTART_IND (EV_CFW_IND_BASE + 68)

//
// NW Response Event.
//
#define EV_CFW_NW_SET_BAND_RSP (EV_CFW_NW_RSP_BASE + 1) // 501
#define EV_CFW_NW_GET_IMEI_RSP (EV_CFW_NW_RSP_BASE + 2)
#define EV_CFW_NW_GET_SIGNAL_QUALITY_RSP (EV_CFW_NW_RSP_BASE + 3)
#define EV_CFW_NW_SET_REGISTRATION_RSP (EV_CFW_NW_RSP_BASE + 4)
#define EV_CFW_NW_DEREGISTER_RSP (EV_CFW_NW_RSP_BASE + 5)
#define EV_CFW_NW_GET_AVAIL_OPERATOR_RSP (EV_CFW_NW_RSP_BASE + 6)
#define EV_CFW_NW_ABORT_LIST_OPERATORS_RSP (EV_CFW_NW_RSP_BASE + 7)
#define EV_CFW_SET_COMM_RSP (EV_CFW_NW_RSP_BASE + 8)
#define EV_CFW_NW_STORELIST_IND (EV_CFW_NW_RSP_BASE + 9)
#define EV_CFW_XCPU_TEST_RSP (EV_CFW_NW_RSP_BASE + 10)
#define EV_CFW_WCPU_TEST_RSP (EV_CFW_NW_RSP_BASE + 11)
#define EV_CFW_NW_GET_QSCANF_RSP (EV_CFW_NW_RSP_BASE + 12)
#define EV_CFW_NW_CELL_LIST_INFO_IND (EV_CFW_NW_RSP_BASE + 13)

#ifdef CONFIG_SOC_6760
#define EV_CFW_NW_PAY_LOAD_INFO_IND (EV_CFW_NW_RSP_BASE + 14)
#endif
#define EV_CFW_NW_GET_FREQSCAN_RSP (EV_CFW_NW_RSP_BASE + 15)
#define EV_CFW_NW_GET_JAMMING_RSP (EV_CFW_NW_RSP_BASE + 16)

//
// GPRS Response Event.
//
#define EV_CFW_GPRS_CTX_MODIFY_ACC_RSP (EV_CFW_GPRS_RSP_BASE + 1) // 851
#define EV_CFW_GPRS_ATT_RSP (EV_CFW_GPRS_RSP_BASE + 2)
#define EV_CFW_GPRS_ACT_RSP (EV_CFW_GPRS_RSP_BASE + 3)
#define EV_CFW_GPRS_CXT_ACTIVE_RSP (EV_CFW_GPRS_RSP_BASE + 4)
#define EV_CFW_GPRS_MOD_RSP (EV_CFW_GPRS_RSP_BASE + 5)
#define EV_CFW_WIFI_CONNECTED_RSP (EV_CFW_GPRS_RSP_BASE + 6)

#define EV_TCPIP_CFW_GPRS_ACT (EV_CFW_GPRS_RSP_BASE + 7)
#define EV_TCPIP_CFW_GPRS_DEACT (EV_CFW_GPRS_RSP_BASE + 8)
#define EV_TCPIP_ETHCARD_CONNECT (EV_CFW_GPRS_RSP_BASE + 9)
#define EV_TCPIP_ETHCARD_DISCONNECT (EV_CFW_GPRS_RSP_BASE + 10)
//
// CC Response Event
//
#define EV_CFW_CC_ACCEPT_SPEECH_CALL_RSP (EV_CFW_CC_RSP_BASE + 1) // 551
#define EV_CFW_CC_CALL_HOLD_MULTIPARTY_RSP (EV_CFW_CC_RSP_BASE + 2)
#define EV_CFW_CC_INITIATE_SPEECH_CALL_RSP (EV_CFW_CC_RSP_BASE + 3)
#define EV_CFW_CC_RELEASE_CALL_RSP (EV_CFW_CC_RSP_BASE + 4)
#define EV_CFW_CC_CALL_SWAP_RSP (EV_CFW_CC_RSP_BASE + 5)

//
// SS Response Event
//
#define EV_CFW_SS_QUERY_CLIP_RSP (EV_CFW_SS_RSP_BASE + 1) // 601
#define EV_CFW_SS_SET_CALL_WAITING_RSP (EV_CFW_SS_RSP_BASE + 2)
#define EV_CFW_SS_QUERY_CALL_WAITING_RSP (EV_CFW_SS_RSP_BASE + 3)
#define EV_CFW_SS_SET_CALL_FORWARDING_RSP (EV_CFW_SS_RSP_BASE + 4)
#define EV_CFW_SS_QUERY_CALL_FORWARDING_RSP (EV_CFW_SS_RSP_BASE + 5)
#define EV_CFW_SS_SET_FACILITY_LOCK_RSP (EV_CFW_SS_RSP_BASE + 6)
#define EV_CFW_SS_GET_FACILITY_LOCK_RSP (EV_CFW_SS_RSP_BASE + 7)
#define EV_CFW_SS_CHANGE_PWD_RSP (EV_CFW_SS_RSP_BASE + 8)
#define EV_CFW_SS_QUERY_FACILITY_LOCK_RSP (EV_CFW_SS_RSP_BASE + 9)
#define EV_CFW_SS_QUERY_CLIR_RSP (EV_CFW_SS_RSP_BASE + 10)
#define EV_CFW_SS_QUERY_COLP_RSP (EV_CFW_SS_RSP_BASE + 11)
#define EV_CFW_SS_SEND_USSD_RSP (EV_CFW_SS_RSP_BASE + 12)
#define EV_CFW_SS_TERMINATE_RSP (EV_CFW_SS_RSP_BASE + 13)
#define EV_CFW_SS_QUERY_COLR_RSP (EV_CFW_SS_RSP_BASE + 14)

//
// SIM Response Event
//
#define EV_CFW_SIM_ADD_PBK_RSP (EV_CFW_SIM_RSP_BASE + 1) // 701
#define EV_CFW_SIM_DELETE_PBK_ENTRY_RSP (EV_CFW_SIM_RSP_BASE + 2)
#define EV_CFW_SIM_GET_PBK_ENTRY_RSP (EV_CFW_SIM_RSP_BASE + 3)
#define EV_CFW_SIM_LIST_PBK_ENTRY_RSP (EV_CFW_SIM_RSP_BASE + 4)
#define EV_CFW_SIM_GET_PBK_STRORAGE_RSP (EV_CFW_SIM_RSP_BASE + 5)
#define EV_CFW_SIM_GET_PBK_STRORAGE_INFO_RSP (EV_CFW_SIM_RSP_BASE + 6)
#define EV_CFW_SIM_GET_PROVIDER_ID_RSP (EV_CFW_SIM_RSP_BASE + 7)
#define EV_CFW_SIM_CHANGE_PWD_RSP (EV_CFW_SIM_RSP_BASE + 8)
#define EV_CFW_SIM_GET_AUTH_STATUS_RSP (EV_CFW_SIM_RSP_BASE + 9)
#define EV_CFW_SIM_ENTER_AUTH_RSP (EV_CFW_SIM_RSP_BASE + 11)
#define EV_CFW_SIM_SET_FACILITY_LOCK_RSP (EV_CFW_SIM_RSP_BASE + 12)
#define EV_CFW_SIM_GET_FACILITY_LOCK_RSP (EV_CFW_SIM_RSP_BASE + 13)
#define EV_CFW_SIM_DELETE_MESSAGE_RSP (EV_CFW_SIM_RSP_BASE + 15)
#define EV_CFW_SIM_WRITE_MESSAGE_RSP (EV_CFW_SIM_RSP_BASE + 16)
#define EV_CFW_SIM_READ_MESSAGE_RSP (EV_CFW_SIM_RSP_BASE + 17)
#define EV_CFW_SIM_LIST_MESSAGE_RSP (EV_CFW_SIM_RSP_BASE + 18)
#define EV_CFW_SIM_GET_SMS_STORAGE_INFO_RSP (EV_CFW_SIM_RSP_BASE + 19)
#define EV_CFW_SIM_READ_BINARY_RSP (EV_CFW_SIM_RSP_BASE + 20)
#define EV_CFW_SIM_UPDATE_BINARY_RSP (EV_CFW_SIM_RSP_BASE + 21)
#define EV_CFW_SIM_GET_SMS_PARAMETERS_RSP (EV_CFW_SIM_RSP_BASE + 22)
#define EV_CFW_SIM_SET_SMS_PARAMETERS_RSP (EV_CFW_SIM_RSP_BASE + 23)
#define EV_CFW_SIM_GET_MR_RSP (EV_CFW_SIM_RSP_BASE + 24)
#define EV_CFW_SIM_SET_MR_RSP (EV_CFW_SIM_RSP_BASE + 25)
#define EV_CFW_SIM_COMPOSE_PDU_RSP (EV_CFW_SIM_RSP_BASE + 26)
#define EV_CFW_SAT_ACTIVATION_RSP (EV_CFW_SIM_RSP_BASE + 27)
#define EV_CFW_SAT_GET_STATUS_RSP (EV_CFW_SIM_RSP_BASE + 28)
#define EV_CFW_SAT_RESPONSE_RSP (EV_CFW_SIM_RSP_BASE + 29)
#define EV_CFW_SAT_GET_INFORMATION_RSP (EV_CFW_SIM_RSP_BASE + 30)
#define EV_CFW_SIM_SET_PREF_OPERATOR_LIST_RSP (EV_CFW_SIM_RSP_BASE + 31)
#define EV_CFW_SIM_GET_PREF_OPERATOR_LIST_RSP (EV_CFW_SIM_RSP_BASE + 32)
#define EV_CFW_SIM_GET_PREF_OPT_LIST_MAXNUM_RSP (EV_CFW_SIM_RSP_BASE + 33)
#define EV_CFW_SIM_SET_PBKMODE_RSP (EV_CFW_SIM_RSP_BASE + 34)
#define EV_CFW_SIM_GET_PBKMODE_RSP (EV_CFW_SIM_RSP_BASE + 35)
#define EV_CFW_SIM_INIT_SMS_RSP (EV_CFW_SIM_RSP_BASE + 36)
#define EV_CFW_SIM_LIST_COUNT_PBK_ENTRY_RSP (EV_CFW_SIM_RSP_BASE + 37)
#define EV_CFW_SIM_RESET_RSP (EV_CFW_SIM_RSP_BASE + 38)
#define EV_CFW_SIM_GET_PUCT_RSP (EV_CFW_SIM_RSP_BASE + 39)
#define EV_CFW_SIM_SET_PUCT_RSP (EV_CFW_SIM_RSP_BASE + 40)
#define EV_CFW_SIM_GET_ACMMAX_RSP (EV_CFW_SIM_RSP_BASE + 41)
#define EV_CFW_SIM_SET_ACMMAX_RSP (EV_CFW_SIM_RSP_BASE + 42)
#define EV_CFW_SIM_SET_ACM_RSP (EV_CFW_SIM_RSP_BASE + 43)
#define EV_CFW_SIM_GET_ACM_RSP (EV_CFW_SIM_RSP_BASE + 44)
#define EV_CFW_SIM_READ_EF_RSP (EV_CFW_SIM_RSP_BASE + 45)
#define EV_CFW_SIM_GET_FILE_STATUS_RSP (EV_CFW_SIM_RSP_BASE + 46)
#define EV_CFW_SIM_READ_RECORD_RSP (EV_CFW_SIM_RSP_BASE + 47)
#define EV_CFW_SIM_UPDATE_RECORD_RSP (EV_CFW_SIM_RSP_BASE + 48)
#define EV_CFW_SIM_GET_SPN_RSP (EV_CFW_SIM_RSP_BASE + 49)
#define EV_CFW_SIM_GET_SMS_TOTAL_NUM_RSP (EV_CFW_SIM_RSP_BASE + 50)
#define EV_CFW_SIM_GET_ICCID_RSP (EV_CFW_SIM_RSP_BASE + 51)
#define EV_CFW_SIM_CLOSE_RSP (EV_CFW_SIM_RSP_BASE + 52)
#define EV_CFW_SIM_SEARCH_PBK_RSP (EV_CFW_SIM_RSP_BASE + 53)
#define EV_CFW_SIM_POWER_OFF_RSP (EV_CFW_SIM_RSP_BASE + 54)
#define EV_CFW_SIM_READ_ELEMENTARY_RSP (EV_CFW_SIM_RSP_BASE + 55)
#define EV_CFW_SIM_GET_EID_RSP (EV_CFW_SIM_RSP_BASE + 56)
#define EV_CFW_SIM_READ_VOICEMIAL_RSP (EV_CFW_SIM_RSP_BASE + 57)
#define EV_CFW_SIM_UPDATE_VOICEMIAL_RSP (EV_CFW_SIM_RSP_BASE + 58)
#define EV_CFW_SIM_INIT_ISIM_RSP (EV_CFW_SIM_RSP_BASE + 59)
#define EV_CFW_SIM_READ_FILES_RSP (EV_CFW_SIM_RSP_BASE + 60)
#define EV_CFW_SIM_TPDU_COMMAND_RSP (EV_CFW_SIM_RSP_BASE + 61)
#define EV_CFW_SIM_MANAGE_CHANNEL_RSP (EV_CFW_SIM_RSP_BASE + 62)
#define EV_CFW_SIM_SELECT_APPLICATION_RSP (EV_CFW_SIM_RSP_BASE + 63)
#define EV_CFW_SIM_GET_DF_STATUS_RSP (EV_CFW_SIM_RSP_BASE + 64)
//
// SMS Response Event.
//
#define EV_CFW_SMS_DELETE_MESSAGE_RSP (EV_CFW_SMS_RSP_BASE + 1) // 771
#define EV_CFW_SMS_GET_STORAGE_RSP (EV_CFW_SMS_RSP_BASE + 2)
#define EV_CFW_SMS_SET_STORAGE_RSP (EV_CFW_SMS_RSP_BASE + 3)
#define EV_CFW_SMS_LIST_MESSAGE_RSP (EV_CFW_SMS_RSP_BASE + 4)
#define EV_CFW_SMS_READ_MESSAGE_RSP (EV_CFW_SMS_RSP_BASE + 5)
#define EV_CFW_SMS_SEND_MESSAGE_RSP (EV_CFW_SMS_RSP_BASE + 6)
#define EV_CFW_SMS_SET_CENTER_ADDR_RSP (EV_CFW_SMS_RSP_BASE + 7)
#define EV_CFW_SMS_GET_CENTER_ADDR_RSP (EV_CFW_SMS_RSP_BASE + 8)
#define EV_CFW_SMS_SET_TEXT_MODE_PARAM_RSP (EV_CFW_SMS_RSP_BASE + 9)
#define EV_CFW_SMS_GET_TEXT_MODE_PARAM_RSP (EV_CFW_SMS_RSP_BASE + 10)
#define EV_CFW_SMS_WRITE_MESSAGE_RSP (EV_CFW_SMS_RSP_BASE + 11)
#define EV_CFW_SMS_LIST_MESSAGE_HRD_RSP (EV_CFW_SMS_RSP_BASE + 12)
#define EV_CFW_SMS_COPY_MESSAGE_RSP (EV_CFW_SMS_RSP_BASE + 13)
#define EV_CFW_SMS_SET_UNREAD2READ_RSP (EV_CFW_SMS_RSP_BASE + 14)
#define EV_CFW_SMS_SET_UNSENT2SENT_RSP (EV_CFW_SMS_RSP_BASE + 15)
#define EV_CFW_SMS_SET_READ2UNREAD_RSP (EV_CFW_SMS_RSP_BASE + 16)
#define EV_CFW_SMS_SET_PARAM_RSP (EV_CFW_SMS_RSP_BASE + 17)
#define EV_CFW_SIM_PATCH_RSP (EV_CFW_SMS_RSP_BASE + 18)
#define EV_CFW_CB_READ_SIM_RSP (EV_CFW_SMS_RSP_BASE + 19)
#define EV_CFW_SMS_MOVE_RSP (EV_CFW_SMS_RSP_BASE + 20)
#define EV_CFW_CB_SET_MID_SIM_RSP (EV_CFW_SMS_RSP_BASE + 21)
#define EV_CFW_SIM_PATCHEX_RSP (EV_CFW_SMS_RSP_BASE + 22)

//
// PBK Response Event
//
#define EV_CFW_PBK_ADD_RSP (EV_CFW_PBK_RSP_BASE + 1) // 801
#define EV_CFW_PBK_UPDATE_ENTRY_RSP (EV_CFW_PBK_RSP_BASE + 2)
#define EV_CFW_PBK_DELETE_RSP (EV_CFW_PBK_RSP_BASE + 3)
#define EV_CFW_PBK_DELETE_BATCH_ENTRIES_RSP (EV_CFW_PBK_RSP_BASE + 4)
#define EV_CFW_PBK_FIND_ENTRY_RSP (EV_CFW_PBK_RSP_BASE + 5)
#define EV_CFW_PBK_LIST_ENTRIES_RSP (EV_CFW_PBK_RSP_BASE + 6)
#define EV_CFW_PBK_GET_ENTRY_RSP (EV_CFW_PBK_RSP_BASE + 7)
#define EV_CFW_PBK_COPY_ENTRIES_RSP (EV_CFW_PBK_RSP_BASE + 8)
#define EV_CFW_PBK_ADD_ENTRY_ITEM_RSP (EV_CFW_PBK_RSP_BASE + 9)
#define EV_CFW_PBK_GET_ENTRY_ITEMS_RSP (EV_CFW_PBK_RSP_BASE + 10)
#define EV_CFW_PBK_DELETE_ENTRY_ITEM_RSP (EV_CFW_PBK_RSP_BASE + 11)
#define EV_CFW_PBK_ADD_CALLLOG_ENTTRY_RSP (EV_CFW_PBK_RSP_BASE + 12)
#define EV_CFW_PBK_GET_CALLLOG_ENTRY_RSP (EV_CFW_PBK_RSP_BASE + 13)
#define EV_CFW_PBK_LIST_CALLLOG_ENTRIES_RSP (EV_CFW_PBK_RSP_BASE + 14)
#define EV_CFW_PBK_DELETE_CALLLOG_ALL_ENTRIES_RSP (EV_CFW_PBK_RSP_BASE + 15)
#define EV_CFW_PBK_CANCEL_RSP (EV_CFW_PBK_RSP_BASE + 16)
#define EV_CFW_PBK_DELETE_CALLLOG_OLDEST_ENTRY_RSP (EV_CFW_PBK_RSP_BASE + 17)

//
// Shell Response Event
//
#define EV_CFW_ME_SET_FACILITY_LOCK_RSP (EV_CFW_SHELL_RSP_BASE + 1) // 1101
#define EV_CFW_ME_GET_FACILITY_LOCK_RSP (EV_CFW_SHELL_RSP_BASE + 2)
#define EV_CFW_ME_CHANGE_PWD_RSP (EV_CFW_SHELL_RSP_BASE + 3)

//
//TCP(UDP) / IP Event
//
#define EV_CFW_TCPIP_SOCKET_CONNECT_RSP (EV_CFW_TCPIPUDP_RSP_BASE + 1) // 1001
#define EV_CFW_TCPIP_SOCKET_CLOSE_RSP (EV_CFW_TCPIPUDP_RSP_BASE + 2)
#define EV_CFW_TCPIP_SOCKET_SEND_RSP (EV_CFW_TCPIPUDP_RSP_BASE + 3)

#define EV_CFW_FTP_LONGIN_RSP (EV_CFW_TCPIPUDP_RSP_BASE + 4)
#define EV_CFW_FTP_FILE_DOWNLOAD_RSP (EV_CFW_TCPIPUDP_RSP_BASE + 5)
#define EV_CFW_FTP_LIST_RSP (EV_CFW_TCPIPUDP_RSP_BASE + 6)
#define EV_CFW_FTP_CHANGEDIR_RSP (EV_CFW_TCPIPUDP_RSP_BASE + 7)
#define EV_CFW_FTP_REC_DATA_IND (EV_CFW_TCPIPUDP_RSP_BASE + 8)

//
//test mode event
//
#define EV_CFW_TSM_INFO_IND (EV_CFW_TM_RSP_BASE + 1) // 1151
#define EV_CFW_TSM_INFO_END_RSP (EV_CFW_TM_RSP_BASE + 2)
#define EV_CFW_TSM_SYNC_INFO_IND (EV_CFW_TM_RSP_BASE + 3)
#define EV_CFW_TSM_SYNC_INFO_END_RSP (EV_CFW_TM_RSP_BASE + 4)

#define EV_RMT_STTPC_REQ (EV_RMC_BASE + 1) // 1201
#define EV_RMT_STTPC_RSP (EV_RMC_BASE + 2)

#define EV_RMT_APP_REQ (EV_RMC_BASE + 51)
#define EV_RMT_APP_RSP (EV_RMC_BASE + 52)

#define EV_DIAG_RECEIVE_DATA (EV_RMC_BASE + 60)

#define EV_CFW_WIFI_INIT_RSP (EV_WIFI_RSP_BASE + 1) // 1301
#define EV_CFW_WIFI_DEINIT_RSP (EV_WIFI_RSP_BASE + 2)
#define EV_CFW_WIFI_SCAN_RSP (EV_WIFI_RSP_BASE + 3)
#define EV_CFW_WIFI_CONN_RSP (EV_WIFI_RSP_BASE + 4)
#define EV_CFW_WIFI_DISCONN_RSP (EV_WIFI_RSP_BASE + 5)
#define EV_CFW_WIFI_DISCONNECT_IND (EV_WIFI_RSP_BASE + 6)

#define EV_CFW_WIFI_SCAN_REQ (EV_WIFI_RSP_BASE + 7)
#define EV_CFW_WIFI_CONNECT_REQ (EV_WIFI_RSP_BASE + 8)
#define EV_CFW_WIFI_POWER_ON_REQ (EV_WIFI_RSP_BASE + 9)
#define EV_MMI_WIFI_IPADDR_CHANGE_REQ (EV_WIFI_RSP_BASE + 10)

#define EV_CFW_WIFI_CONNECTED_IND (EV_WIFI_IND_BASE + 1) // 1352
#define EV_CFW_WIFI_DATA_IND (EV_WIFI_IND_BASE + 2)
#define EV_CFW_WIFI_TEST_MODE_DATA_IND (EV_WIFI_IND_BASE + 3)
#define EV_MAC_WIFI_DATA_IND (EV_WIFI_IND_BASE + 4)
#define EV_MAC_WIFI_DATA_REQ (EV_WIFI_IND_BASE + 5)
#define EV_CFW_WIFI_EAPOL_IND (EV_WIFI_IND_BASE + 6)
#define EV_MMI_WIFI_CONNECTED_IND (EV_WIFI_IND_BASE + 7)
#define EV_MMI_WIFI_NEED_POWEROFF_IND (EV_WIFI_IND_BASE + 8)
#define EV_CFW_WIFI_IPADDR_UPDATE_IND (EV_WIFI_IND_BASE + 9)
#define EV_CFW_WIFI_IPADDR_CONFLICT_IND (EV_WIFI_IND_BASE + 10)
#define EV_CFW_WIFI_CURR_AP_INFO_IND (EV_WIFI_IND_BASE + 11)
#define EV_WIFI_WIFI_RESET_REQ (EV_WIFI_IND_BASE + 12)
#define EV_WIFI_MMI_RESET_IND (EV_WIFI_IND_BASE + 13)
#define EV_CFW_WIFI_DISCONNECT_REQ (EV_WIFI_RSP_BASE + 14)
#define EV_WIFI_WIFI_POWERON_CONTINUE_REQ (EV_WIFI_IND_BASE + 15)
#define EV_CFW_WIFI_POWER_OFF_REQ (EV_WIFI_IND_BASE + 16)
#define EV_MAC_WIFI_KET_SET_REQ (EV_WIFI_IND_BASE + 17)
#define EV_CFW_WIFI_TEST_MODE_INFO_IND (EV_WIFI_IND_BASE + 18)
#define EV_CFW_WIFI_GET_NETWORKINFO_REQ (EV_WIFI_IND_BASE + 19)

#define EV_BT_TETHER_DATA_IND (EV_BT_TETHER_BASE + 1) // 1401

#define EV_INTER_APS_TCPIP_REQ (EV_CSW_PRV_BASE + 5)

#endif // _H_
